﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        enum Order {
            新订单=1,
            已发货, 
            已签收, 
            已评价
            
        }
        static void Main(string[] args)
        {
            /*1、编写程序，定义一个枚举类型，表示订单的状态值：新订单、已发货、已签收、已评价；
                声明一个枚举类型表示某个订单的状态并将其值输出。*/
            Order newOrder = Order.新订单;
            Order newOrder2 = Order.已发货;
            Order newOrder3 = Order.已签收;
            Order newOrder4 = Order.已评价;

            int newOrderNum = (int)newOrder;
            int newOrderNum1 = (int)newOrder2;
            int newOrderNum2 = (int)newOrder3;
            int newOrderNum3 = (int)newOrder4;

            Console.WriteLine(newOrder +"---"+newOrderNum );
            Console.WriteLine(newOrder2 + "---" + newOrderNum1);
            Console.WriteLine(newOrder3 + "---" + newOrderNum2);
            Console.WriteLine(newOrder4 + "---" + newOrderNum3);
            Console.ReadLine();
        }
    }
}
